﻿<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<script src="js/jquery-3.2.1.min.js"></script>
		<!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
	<link rel="stylesheet" href="css/bootstrap.min.css" >	
	<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
	<script src="js/bootstrap.min.js" ></script>
	<link rel="stylesheet" type="text/css" href="css/index.css">
	<title>首页</title>
</head>
<body>
		<nav class="navbar navbar-default navbar-fixed-top top" >
	<!-- <div class="top" > -->
		
		<img class="top_left" src="images/log.png">
	
		<div class="pull-right" style="margin-top: 15px;margin-right: 20px;">
			<a href="http://www.xinli001.com/ceshi">关于心理测试</a>
			<a href="page/login.php">登录</a>
			<a href="page/register.html">注册</a>
		</div>
		</nav>	


	<hr />
		<div id="carousel-generic" class="carousel slide" style="width: 86%; margin-left: 7%;">
		  <!-- 指示圆点 -->
		  <ol class="carousel-indicators">
		    <li data-target="#carousel-generic" data-slide-to="0" class="active"></li>
		    <li data-target="#carousel-generic" data-slide-to="1"></li>
		    <li data-target="#carousel-generic" data-slide-to="2"></li>
		    <li data-target="#carousel-generic" data-slide-to="3"></li>
		  </ol>
 
		  <!-- 轮播的图片-->
		  <div class="carousel-inner" role="listbox" >
		    <div class="item active">
		      <img src="images/bg5.jpg" >
		    </div>
		    <div class="item">
		            <img src="images/bg2.jpg" >
		    </div>
		    <div class="item">
		            <img src="images/bg3.jpg" >
		    </div>
		    <div class="item">
		            <img src="images/bg4.jpg" >
		    </div>
		  </div>
 
		  <!-- 控制按钮 -->
		  <a class="left carousel-control" href="#carousel-generic" role="button" data-slide="prev">
		    <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
		  </a>
		  <a class="right carousel-control" href="#carousel-generic" role="button" data-slide="next">
		    <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
		  </a>	 
		</div>
	
	<hr />
	<nav >
		 <?php
         $servername = "localhost";
         $username = "username";
         $password = " ";

         $conn = mysqli_connect($servername, $username, $password);
  		mysql_query("set names gbk");
  		$query="select * from count";
   	 	$result = mysql_db_query("psychology","$query");
   		$data= mysql_fetch_object($result);
  		echo "欢迎你第".$data->pageView."次访问";
   		$count = $data->pageView + 1;
   		$query2="update count set pageView = $count where countID = 0";
   		$result2 = mysql_db_query("psychology","$query2");
    ?>

    <!-- 版权 -->
		<div  style="text-align:center">
			<hr>
			<font>©2018 chenshuwei AND yangliu.<br/>All Rights Reserved.<br/>
			电话：0991-123456</font>
		</div>
	</nav>
</body>
</html>